<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStoreOrdersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_store_orders', function (Blueprint $table) {
            $table->increments('id');
            $table->string('sn')->comment('订单号');
            $table->string('user_id')->comment('用户id');
            $table->decimal('money')->comment('金额');
            $table->integer('store_id')->comment('购买商圈');
            $table->integer('type')->comment('类型0普通1置顶');
            $table->integer('days')->comment('天数');
            $table->integer('order_status')->comment('0未完成1已完成');
            $table->integer('pay_status')->comment('0未支付1已支付');
            $table->integer('pay_type')->comment('支付类型1微信2支付宝');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_store_orders');
    }
}
